﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/admin-all.css" />
    <script type="text/javascript" src="/HR_SYSTEM/Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="/HR_SYSTEM/Scripts/jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/HR_SYSTEM/Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
            $('.alert-danger').find('b').click(function () {
                $('.task').toggle();
            });
        });
    </script>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>人员档案<b class="tip"></b>人员信息</div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">本人信息</a></li>
            <li><a href="#tabs-2">本人角色和权限</a></li>
        </ul>
        <div id="tabs-1">
        <p>
        <div class="alert alert-danger">
        	<b><a href="javascript:void(0)">我的信息<i class="tip-up-red"></i></a></b>
        	<div class="task">
            	<p></p>
            	<p><i class="tip-left"></i><font color="black" size="3">编号：${user_find.user_id}</font></p>
            	<p><i class="tip-left"></i><font color="black" size="3">姓名：${user_find.username}</font></p>
            	<p><i class="tip-left"></i><font color="black" size="3">性别： ${user_find.sex}</font></p>
            	<p><i class="tip-left"></i><font color="black" size="3">年龄: ${user_find.age}</font></p>
            	<p><i class="tip-left"></i><font color="black" size="3">部门：${user_find.dept.dept_NAME}</font></p>
            	<p><i class="tip-left"></i><font color="black" size="3">工作职责：${user_find.dept.dept_DESCRIBLE}</font></p>
        	</div>
    	</div>
        </p>
        </div>
        <div id="tabs-2">
            <p>
            <div class="alert alert-danger">
        	<b><a href="javascript:void(0)">我的角色和权限<i class="tip-up-red"></i></a></b>
			<div class="task">
				<p></p>
				<p><i class="tip-left"></i><font color="black" size="3">&nbsp;我的角色：${role.role_Name}</font></p>
				<c:choose>
					<c:when test="${empty role}">
						<p><i class="tip-left"></i>我的权限：没有被分配权限,请联系管理员</p>
					</c:when>
					<c:otherwise>
						<p>
						<i class="tip-left"></i>
						<font color="black" size="3">
						我的权限
						【
						<c:forEach items="${role.privileges}" var="privilege">
							${privilege.privilege_name}	
						</c:forEach>
						】
						</font>
						</p>
					</c:otherwise>
				</c:choose>
            	<p></p>
        	</div>
        	</div>
			</p>
        </div>
    </div>
    <br />
</body>
</html>
